<?php
namespace app\index\controller;
use app\np\model\Data;
use think\Controller;
use think\Db;
use think\Session;

class Index extends Controller{
    
    public function index()
    {
    	// echo 'ininini';
    	
    	$string = '11111111111ABCDEF1524467052';
    	$string = 'D7A126141E012115B1C1151411F';
    	$res = '15,24,12,09,27,23,01,21,08,16,25,02,20,11,06,19,13,07,14,04,10,26,03,22,18,05,17';
    	$res = '07,12,23,20,26,15,18,09,04,21,14,03,17,19,01,10,27,25,16,13,08,24,06,02,11,22,05';
    	$res = explode(",", $res); 
        $rest = substr($string, 60, 1); 
        $str = '';
        // 重新排序
        foreach ($res as $k => $v) {
            $str .= substr($string, $v-1, 1);
        }
        var_dump($str);exit;
    }
    
}

?>